import Home from '../pages/home/index.vue'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  { path: '/', redirect: '/home' },
  { 
    path: '/home', 
    component: Home,
    props: { dataSource: 'first' }
  },
  {
    path: '/home2',
    component: Home,
    props: { dataSource: 'second' }
  },
  {
    path: '/home3', 
    component: Home,
    props: { dataSource: 'third' }
  },
  {
    path: '/me',
    component: () => import('@/pages/me/Me.vue')
  },
  {
    path: '/video-detail',
    name: 'video-detail',
    component: () => import('@/pages/other/VideoDetail.vue')
  },
  {
    path: '/home/search',
    component: () => import('@/pages/home/SearchPage.vue')
  }
]

export default routes
